let vm = new Vue({
    el:"#bigdiv",
    data:{
        flagLogin:false,banner:[],desginsRight:[],desginsLeft:[]
    },created:function () {
        axios.get("/currentUser").then(function (response) {
                if (response.data!=null){
                    vm.flagLogin = response.data;
                    if (!vm.flagLogin){
                        location.href="login.html";
                        return;
                    }
                }
        }).catch(function (err) {
             alert(err)
        });
        axios.get("/selectlist").then(function (response) {
            // alert(response.data);
                vm.banner = response.data;
        }).catch(function (err) {
                alert(err)
        });
        axios.get("/desginRight").then(function (r) {
                vm.desginsRight = r.data;
        }).catch(function (err) {
                alert(err)
        })
        axios.get("/desginLeft").then(function (r) {
            vm.desginsLeft = r.data;
        }).catch(function (err) {
            alert(err)
        })

    },methods:{
        author:function () {
            location.href="yjb/Hair%20salon.html"
        },
        author1:function () {
            location.href="zzx/题.html"
        }
    }
})




